package com.smile.service.entity.device.property;

import com.alibaba.fastjson2.annotation.JSONField;

public class DroneSystemData {

    @JSONField(name = "distance_limit_status")
    private DistanceLimitStatus distanceLimitStatus;

    // 嵌套类定义
    public static class DistanceLimitStatus {
        @JSONField(name = "state")
        private int state;

        // Getter & Setter
        public int getState() {
            return state;
        }

        public void setState(int state) {
            this.state = state;
        }

        @Override
        public String toString() {
            return "DistanceLimitStatus{" +
                    "state=" + state +
                    '}';
        }
    }

    // Getter & Setter
    public DistanceLimitStatus getDistanceLimitStatus() {
        return distanceLimitStatus;
    }

    public void setDistanceLimitStatus(DistanceLimitStatus distanceLimitStatus) {
        this.distanceLimitStatus = distanceLimitStatus;
    }

    @Override
    public String toString() {
        return "DroneSystemData{" +
                "distanceLimitStatus=" + distanceLimitStatus +
                '}';
    }
}